package Test;

import BLL.BCart;
import java.util.ArrayList;

import BLL.BCategory;
import BLL.BProduct;
import BLL.BUser;
import DTO.Cart;
import DTO.Category;
import DTO.Product;
import DTO.User;
import java.util.Date;
import javax.smartcardio.Card;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		//Cart c = new Cart();
                //c.setUserId(1);
                //c.setProductId(2);
              //  new BCart().insert(c);
                /*Category ca = new Category();
                ca.setName("giay dep");
                ca.setParent(0);
                new BCategory().insert(ca);*/
            
            
            ArrayList<Cart> carts = new BCart().getAll();
            if(carts == null)
            {
                System.out.println("rong");
                
            }
            else 
            {
                for(Cart cc : carts)
                {
                    System.out.println(cc.getUserId());
                }
             }
               
	}

}
